﻿using System.Collections.Generic;
using System.Linq;
using Skynet.CommonLibrary.AOP.AOPBase;
using Skynet.CommonLibrary.ExceptionEx.Config;

namespace Skynet.CommonLibrary.AOP.Exception
{
    public class ExceptionLogAttribute : AopContextAttribute
    {
        public override IAopHandle GetAOPProperty(AopContextAttribute context)
        {
            List<ExceptionConfigEntity> list = new List<ExceptionConfigEntity>();
            foreach (var en in list.Where(en => en.Name != string.Empty))
            {
                en.Name = "1";
            }
            return new ExceptionAopSink();
        }
    }
}
